package com.rongji.dfish.hello.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PubUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PUB_USER")
public class PubUser implements java.io.Serializable {

	// Fields

	private String userId;
	private String loginName;
	private String orgId;
	private String orgPath;
	private String userName;
	private String gender;
	private String mobilePhone;
	private String email;
	private String userType;
	private String userStatus;

	// Constructors

	/** default constructor */
	public PubUser() {
	}

	/** minimal constructor */
	public PubUser(String userId, String loginName, String orgId) {
		this.userId = userId;
		this.loginName = loginName;
		this.orgId = orgId;
	}

	/** full constructor */
	public PubUser(String userId, String loginName, String orgId, String orgPath, String userName, String gender,
			String mobilePhone, String email, String userType, String userStatus) {
		this.userId = userId;
		this.loginName = loginName;
		this.orgId = orgId;
		this.orgPath = orgPath;
		this.userName = userName;
		this.gender = gender;
		this.mobilePhone = mobilePhone;
		this.email = email;
		this.userType = userType;
		this.userStatus = userStatus;
	}

	// Property accessors
	@Id
	@Column(name = "USER_ID", unique = true, nullable = false, length = 32)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "LOGIN_NAME", nullable = false)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "ORG_ID", length = 32)
	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "ORG_PATH", length = 600)
	public String getOrgPath() {
		return this.orgPath;
	}

	public void setOrgPath(String orgPath) {
		this.orgPath = orgPath;
	}

	@Column(name = "USER_NAME")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "GENDER", length = 1)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "MOBILE_PHONE", length = 11)
	public String getMobilePhone() {
		return this.mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "USER_TYPE", length = 1)
	public String getUserType() {
		return this.userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	@Column(name = "USER_STATUS", length = 1)
	public String getUserStatus() {
		return this.userStatus;
	}

	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

}